home *** CD-ROM | disk | FTP | other *** search
- // ****************************************************************************************
- // * *
- // * Egypte 2 : Script *
- // * *
- // * SΘquence 023 : BibliothΦque *
- // * *
- // ****************************************************************************************
- // * v0.0 : 29/11/1999 - GrΘgory JOSEPH *
- // * v1.0 : 07/01/2000 - GrΘgory JOSEPH *
- // **************************************
- [S023]
-
-
- // **************************************
- // * WamEdit *
- // **************************************
- // Papyrus1 visibles pas clickables
- // Papyrus2 visibles pas clickables
- // Papyrus3 visibles pas clickables
- // PapyrusLegende visibles pas clickables
- // BagueRapport : prise auto aprΦs ouverture porte Q5
-
-
- :init
- begin
- if not S023Init then
- set S023Init = 1
- ShowSpw "Porte_Q1" first
- ShowSpw "Porte_Q2" first
- ShowSpw "Porte_Q3" first
- ShowSpw "Porte_Q4" first
- ShowSpw "Porte_Q5" first
- ShowSpw "Porte_Q6" first
- endif
-
- // if not D007 then
- // disableClick "Porte_Q1"
- // disableClick "Porte_Q2"
- // disableClick "Porte_Q3"
- // else
- // enableClick "Porte_Q1"
- // enableClick "Porte_Q2"
- // enableClick "Porte_Q3"
- // endif
-
- // if not D038 then
- // disableClick "Porte_Q4"
- // disableClick "Porte_Q5"
- // disableClick "Porte_Q6"
- // endif
-
- end
-
-
- :loop
- begin
-
- //******* Gestion de la mussique *************//
- if TIME4 >= 200 then
- if musiqueEnCours = 0 then
- // rien
- else
- music musiqueEnCours
- set oldMusiqueEnCours = musiqueEnCours
- set TIME4 = 0
- endif
-
- elif not oldMusiqueEnCours = musiqueEnCours then
- if musiqueEnCours = 0 then
- // rien
- else
- music musiqueEnCours
- set oldMusiqueEnCours = musiqueEnCours
- set TIME4 = 0
- endif
-
- // else
- // if musiqueEnCours = 0 then
- // // rien
- // else
- // music musiqueEnCours
- // set oldMusiqueEnCours = musiqueEnCours
- // set TIME4 = 0
- // endif
- endif
-
- if Mouse_Click = "zPapyrus" then
- if Hand = "" then
- if SeePapyrus = 0 then
- // affichage Papyrus 1
- // puzzle Papyrus 1
- set SeePapyrus = 1
- hideSpw "Papyrus1"
- Dialog "HR137V01" off
- set defaultPapyrus = 5
- puzzle 5
- Dialog "HR137V02" off
-
- elif SeePapyrus = 1 then
- // affichage Papyrus 2
- // puzzle Papyrus 2
- set SeePapyrus = 2
- hideSpw "Papyrus2"
- Dialog "HR138V01" off
- set defaultPapyrus = 6
- puzzle 5
- Dialog "HR138V02" off
- elif SeePapyrus = 2 then
- // affichage Papyrus 3
- // puzzle Papyrus 3
- set SeePapyrus = 3
- Dialog "HR139V01" off
- hideSpw "Papyrus3"
- set defaultPapyrus = 7
- puzzle 5
- Dialog "HR139V02" off
-
- elif SeePapyrus = 3 then
- hideSpw "PapyrusLegende"
- // affichage Papyrus Legende
- // puzzle Papyrus legende
- DisableClick "zPapyrus"
-
- Dialog "HR019V01" off
- set Invent = Invent + "PapyrusLegende"
- // set hand = ""
-
- set papyrusAAfficher = 5
- puzzle 6
-
- Dialog "HR019V02" off
-
- // Minute 13
- set SP = 6
- // set oldMusiqueEnCours = musiqueEnCours
- // set musiqueEnCours = 4
- // Dialog "HR140V01" off
- showSpw "GrandPretre_S006" 2
-
- endif
- endif
-
-
- // **************************************
- // * Ouverture portes *
- // **************************************
- elif Mouse_Click = "Porte_Q1" then
- if Porte_Q1_Open then
- sound "19"
- ShowSpw "Porte_Q1" reverse once wait
- ShowSpw "Porte_Q1" first
- Set Porte_Q1_Open = 0
- else
- sound "27"
- ShowSpw "Porte_Q1" once wait
- ShowSpw "Porte_Q1" last
- Set Porte_Q1_Open = 1
- endif
-
-
- elif Mouse_Click = "Porte_Q2" then
- if Porte_Q2_Open then
- sound "19"
- ShowSpw "Porte_Q2" reverse once wait
- ShowSpw "Porte_Q2" first
- Set Porte_Q2_Open = 0
- else
- sound "27"
- ShowSpw "Porte_Q2" once wait
- ShowSpw "Porte_Q2" last
- Set Porte_Q2_Open = 1
- endif
-
-
- elif Mouse_Click = "Porte_Q3" then
- if Porte_Q3_Open then
- sound "19"
- ShowSpw "Porte_Q3" reverse once wait
- ShowSpw "Porte_Q3" first
- Set Porte_Q3_Open = 0
- else
- sound "27"
- ShowSpw "Porte_Q3" once wait
- ShowSpw "Porte_Q3" last
- Set Porte_Q3_Open = 1
- endif
-
-
- elif Mouse_Click = "Porte_Q4" then
- if Porte_Q4_Open then
- sound "19"
- ShowSpw "Porte_Q4" reverse once wait
- ShowSpw "Porte_Q4" first
- Set Porte_Q4_Open = 0
- else
- sound "27"
- ShowSpw "Porte_Q4" once wait
- ShowSpw "Porte_Q4" last
- Set Porte_Q4_Open = 1
- endif
-
-
- elif Mouse_Click = "Porte_Q5" then
- // and D028 then
- if Porte_Q5_Open then
- sound "19"
- ShowSpw "Porte_Q5" reverse once wait
- ShowSpw "Porte_Q5" first
- Set Porte_Q5_Open = 0
- // hidespw BagueRapport
- else
- sound "27"
- ShowSpw "Porte_Q5" once wait
- ShowSpw "Porte_Q5" last
- Set Porte_Q5_Open = 1
- // showspw BagueRapport
- endif
-
- elif Mouse_Click = "Porte_Q6" then
- if Porte_Q6_Open then
- sound "19"
- ShowSpw "Porte_Q6" reverse once wait
- ShowSpw "Porte_Q6" first
- Set Porte_Q6_Open = 0
- else
- sound "27"
- ShowSpw "Porte_Q6" once wait
- ShowSpw "Porte_Q6" last
- Set Porte_Q6_Open = 1
- endif
-
-
- // **************************************
- // * Sortie *
- // **************************************
- elif Mouse_Click = "zS007" then
- AutoMove "zS007"
- Jump "MaisnVie" "S007" 3 Fade
- endif
-
- end